import type { Channel } from '@doist/comms-sdk'; export declare function validateChannelName(name: string): void; export declare function resolveVisibilityOption(options: { public?: boolean; private?: boolean; }): boolean | undefined; export declare function resolveChannelWorkspaceId(workspaceRef: string | undefined): Promise; /** * Resolve a channel for a mutation. Direct refs (`id:` or URL) are fetched by * ID via `getChannel`, which is workspace-agnostic — so a channel in another * workspace resolves without a `--workspace` flag. Name refs still need a * workspace to disambiguate. An explicit `--workspace` forces the name path. */ export declare function resolveChannelByRef(ref: string, workspaceRef: string | undefined): Promise; /** Where the previous page of `channel threads` stopped. */ export type ThreadsCursor = { /** `lastUpdated` of the last thread shown, in milliseconds. */ before: number; /** IDs of the threads already shown from that same moment, which the next page skips. */ shown: string[]; /** With --unread, how many of the channel's unread threads are still to come... */ unreadLeft?: number; /** ...and a fingerprint of the unread threads that count came from, to tell when it's stale. */ unreadSet?: string; }; export declare function encodeCursor(cursor: ThreadsCursor): string; export declare function decodeCursor(cursor: string | undefined): ThreadsCursor | undefined; //# sourceMappingURL=helpers.d.ts.map