import type { DraftResourceType } from "./draft";
/** Return value of {@link useEditSessionPrep}. */
export interface UseEditSessionPrepReturn {
    /** Files ready to be passed as `initialAttachments` to SessionComposer. */
    readonly files: File[] | undefined;
    /** Non-null when resource fetch or serialization failed. */
    readonly error: string | null;
}
/**
 * Prepares initial attachment files for an edit-mode draft session.
 *
 * Given a resource type and an org/slug reference, this hook fetches the
 * existing resource and serializes it into a `File` object suitable for
 * the `initialAttachments` prop of `SessionComposer`:
 *
 * - **agent** / **mcp-server**: serialized to YAML
 * - **skill**: downloaded as a ZIP package
 *
 * Pass `null` for `draftType` or `editRef` to skip preparation (used
 * when the session is in create-mode rather than edit-mode).
 */
export declare function useEditSessionPrep(draftType: DraftResourceType | null, editRef: {
    readonly org: string;
    readonly slug: string;
} | null): UseEditSessionPrepReturn;
//# sourceMappingURL=useEditSessionPrep.d.ts.map