import type { DID } from 'dids'; import type { Stream, StreamHandler, CeramicCommit, AnchorStatus, StreamState } from './stream.js'; import type { CreateOpts, LoadOpts, PublishOpts, UpdateOpts } from './streamopts.js'; import type { StreamID, CommitID } from '@dustil/streamid'; import type { LoggerProvider } from './logger-provider.js'; import type { GenesisCommit } from './index.js'; import type { IndexApi } from './index-api.js'; export interface PinApi { add(streamId: StreamID, force?: boolean): Promise; rm(streamId: StreamID, opts?: PublishOpts): Promise; ls(streamId?: StreamID): Promise>; } export type { DIDProvider } from 'dids'; interface CeramicCommon { loggerProvider?: LoggerProvider; } export interface CeramicSigner extends CeramicCommon { did: DID | undefined; [index: string]: any; } export interface AdminApi { getIndexedModels(): Promise>; startIndexingModels(modelsIDs: Array): Promise; stopIndexingModels(modelsIDs: Array): Promise; } export interface CeramicApi extends CeramicSigner { readonly pin: PinApi; readonly index: IndexApi; readonly admin: AdminApi; addStreamHandler(streamHandler: StreamHandler): void; createStreamFromGenesis(type: number, genesis: any, opts?: CreateOpts): Promise; loadStream(streamId: StreamID | CommitID | string, opts?: LoadOpts): Promise; loadStreamCommits(streamId: StreamID | string): Promise>>; multiQuery(queries: Array, timeout?: number): Promise>; applyCommit(streamId: StreamID | string, commit: CeramicCommit, opts?: CreateOpts | UpdateOpts): Promise; requestAnchor(streamId: StreamID | string, opts?: LoadOpts): Promise; setDID(did: DID): Promise; getSupportedChains(): Promise>; buildStreamFromState(state: StreamState): T; close(): Promise; } export interface MultiQuery { genesis?: GenesisCommit; streamId: CommitID | StreamID | string; paths?: Array; atTime?: number; } //# sourceMappingURL=ceramic-api.d.ts.map