UNPKG

@capgo/cli

Version:
17 lines (16 loc) • 898 B
import type { CapgoClient } from '../utils'; import type { ChannelAddOptions } from '../schemas/channel'; export declare function isChannelReadableByCaller(client: CapgoClient, appId: string, channelName: string): Promise<boolean | null>; export type ChannelAddDuplicateOutcome = 'duplicate_readable' | 'duplicate_inaccessible' | 'not_duplicate'; export declare function resolveChannelAddDuplicateOutcome(params: { createError: unknown; client: CapgoClient; appId: string; channelName: string; }, deps?: { isChannelReadableByCaller?: typeof isChannelReadableByCaller; }): Promise<ChannelAddDuplicateOutcome>; export declare function addChannelInternal(channelId: string, appId: string, options: ChannelAddOptions, silent?: boolean): Promise<{ name: string; }>; export declare function addChannel(channelId: string, appId: string, options: ChannelAddOptions): Promise<void>;