import type { ApiClient } from "../client.js"; import type { CopyProgress, CopyResult, StoryTreeNode } from "./types.js"; import type { ExtendedISbStoriesParams } from "../../api/stories/stories.types.js"; /** * Get all stories from a space */ export declare function getAllStories(client: ApiClient, options?: ExtendedISbStoriesParams): Promise; /** * Get a single story by ID */ export declare function getStoryById(client: ApiClient, storyId: number | string): Promise; /** * Get a story by slug */ export declare function getStoryBySlug(client: ApiClient, slug: string): Promise; /** * Create a story in a space */ export declare function createStory(client: ApiClient, content: any): Promise; /** * Fetch all stories and build a tree structure */ export declare function fetchStories(client: ApiClient, options?: ExtendedISbStoriesParams): Promise<{ stories: any[]; tree: StoryTreeNode[]; total: number; }>; /** * Copy stories from source space to target space */ export declare function copyStories(sourceClient: ApiClient, targetClient: ApiClient, options: { storyIds: number[]; destinationParentId?: number | null; }, onProgress?: (progress: CopyProgress) => void): Promise;