89 lines
1.6 KiB
TypeScript
89 lines
1.6 KiB
TypeScript
export { SNOWLUMA_ACTIONS, isSnowLumaAction } from './actions';
|
|
export { SnowLumaApiClient } from './client/api-client';
|
|
export { SnowLumaHttpClient, createHttpClient } from './client/http-client';
|
|
export { SnowLumaWebSocketClient, createWebSocketClient } from './client/websocket-client';
|
|
export {
|
|
SnowLumaAbortError,
|
|
SnowLumaApiError,
|
|
SnowLumaAuthError,
|
|
SnowLumaConnectionError,
|
|
SnowLumaError,
|
|
SnowLumaParseError,
|
|
SnowLumaTimeoutError,
|
|
SnowLumaTransportError,
|
|
createSnowLumaApiError,
|
|
} from './errors';
|
|
export {
|
|
MessageChain,
|
|
at,
|
|
atAll,
|
|
br,
|
|
chain,
|
|
contact,
|
|
escapeCqParam,
|
|
escapeCqText,
|
|
face,
|
|
forward,
|
|
image,
|
|
json,
|
|
location,
|
|
message,
|
|
music,
|
|
node,
|
|
normalizeMessage,
|
|
parseSegments,
|
|
poke,
|
|
raw,
|
|
record,
|
|
reply,
|
|
share,
|
|
text,
|
|
toCQString,
|
|
video,
|
|
xml,
|
|
fromCQString,
|
|
} from './messages/index';
|
|
export {
|
|
createEventContext,
|
|
isGroupMessageEvent,
|
|
isMessageEvent,
|
|
isMetaEvent,
|
|
isNoticeEvent,
|
|
isPrivateMessageEvent,
|
|
isRequestEvent,
|
|
matchCommand,
|
|
noticeType,
|
|
requestType,
|
|
} from './events/index';
|
|
|
|
export type {
|
|
SnowLumaKnownAction,
|
|
} from './actions';
|
|
|
|
export type {
|
|
SnowLumaHttpClientOptions,
|
|
} from './client/http-client';
|
|
|
|
export type {
|
|
ReconnectOptions,
|
|
SnowLumaWebSocketClientOptions,
|
|
SnowLumaWebSocketEvents,
|
|
WebSocketCloseInfo,
|
|
WebSocketConstructor,
|
|
} from './client/websocket-client';
|
|
|
|
export type {
|
|
CommandHandler,
|
|
CommandMatch,
|
|
CommandOptions,
|
|
EventHandler,
|
|
EventMiddleware,
|
|
EventNext,
|
|
EventPredicate,
|
|
MaybePromise,
|
|
RequestDecisionOptions,
|
|
SnowLumaEventContext,
|
|
} from './events/index';
|
|
|
|
export type * from './types/index';
|