UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

20 lines • 1.45 kB
import { NotionAccessor } from '../../../../accessor/notion.ts'; import { HttpNotionTransport } from '../../../../core/notion/client.ts'; import type { NotionConfig } from '../../../../core/notion/config.ts'; import { type ByteSource } from '../../../../io/types.ts'; import type { FlagValue } from '../../../spec/types.ts'; import type { CommandFnResult } from '../../../config.ts'; export type NtnAccessor = NotionAccessor<HttpNotionTransport>; export declare function ntnAccessor(config: unknown): NtnAccessor; export declare function notionConfig(accessor: NtnAccessor, bag: Record<string, FlagValue>): NotionConfig; export declare function notionTransport(accessor: NtnAccessor, bag: Record<string, FlagValue>): HttpNotionTransport; export declare function prettyJson(value: unknown): ByteSource; export declare function compactJson(value: unknown): ByteSource; export declare function rustDebug(text: string): string; export declare function firstText(texts: readonly string[], what: string): string; export declare function contentOrStdin(inline: string | undefined, stdin: ByteSource | null | undefined): Promise<string>; export declare function plainTextOf(fragments: unknown): string; export declare function propertyCell(prop: unknown): string; export declare function parseJsonText(text: string, flag: string): Record<string, unknown>; export declare function usageError(err: unknown): CommandFnResult; //# sourceMappingURL=util.d.ts.map