/** * Wiki API client — wraps lark-cli wiki subcommands. * * Uses execFileSync directly (same pattern as commands/auth.ts) * for wiki-specific operations. Takes a LarkCli instance for * doc-level operations (getBlocks, createBlockChildren, patchBlock). */ import { type LarkCli } from "../cli.js"; import type { WikiNode } from "./wiki-types.js"; export declare class WikiClient { readonly cli: LarkCli; private cliPath; constructor(cli: LarkCli); /** Resolve a node token to full metadata (including space_id). */ getNode(token: string): WikiNode | null; /** List all direct children of a node (handles pagination via --page-all). */ listChildren(spaceId: string, parentNodeToken: string): WikiNode[]; /** * Server-side deep copy of a node (including entire subtree). * Preserves all block-level styles natively. */ copyNode(spaceId: string, nodeToken: string, targetParentToken: string, title?: string): WikiNode | null; /** * Update a wiki node's title. Supports docx/doc/shortcut nodes. * Returns true on success, false on any error. */ updateNodeTitle(spaceId: string, nodeToken: string, title: string): boolean; /** Create an empty wiki node. */ createNode(spaceId: string, parentNodeToken: string, title: string, objType?: string): WikiNode | null; private exec; } //# sourceMappingURL=wiki-client.d.ts.map