import { ZuiType } from 'llmz/dist/types';
import { BaseWorkflow, Typings } from '../workflow';
import { z } from '@botpress/sdk';
export type Item = z.infer<typeof Item>;
declare const Item: import("@bpinternal/zui").ZodObject<{
    file: import("@bpinternal/zui").ZodString;
    name: import("@bpinternal/zui").ZodString;
    hash: import("@bpinternal/zui").ZodString;
    size: import("@bpinternal/zui").ZodNumber;
}, "strip", {
    name: string;
    size: number;
    hash: string;
    file: string;
}, {
    name: string;
    size: number;
    hash: string;
    file: string;
}>;
export type SyncInput = z.infer<typeof SyncInput>;
export declare const SyncInput: import("@bpinternal/zui").ZodObject<{
    dsId: import("@bpinternal/zui").ZodString;
    kbName: import("@bpinternal/zui").ZodString;
    kbId: import("@bpinternal/zui").ZodString;
    force: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodBoolean>>;
}, "strip", {
    kbId: string;
    kbName: string;
    dsId: string;
    force: boolean;
}, {
    kbId: string;
    kbName: string;
    dsId: string;
    force?: boolean | undefined;
}>;
export type SyncOutput = z.infer<typeof SyncOutput>;
export declare const SyncOutput: import("@bpinternal/zui").ZodObject<{
    processed: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
    added: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    updated: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    deleted: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    errors: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodString, "many">>;
}, "strip", {
    processed: number;
    added: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    updated: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    deleted: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    errors: string[];
}, {
    processed?: number | undefined;
    added?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    updated?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    deleted?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    errors?: string[] | undefined;
}>;
export declare const createSyncWorkflow: <TState extends ZuiType = ZuiType>(props: {
    type: string;
    state: TState;
    handler: (props: Typings.HandlerProps<typeof SyncInput, typeof SyncOutput, TState>) => Promise<z.infer<typeof SyncOutput>>;
}) => BaseWorkflow<`data_source_sync_${string}`, import("@bpinternal/zui").ZodObject<{
    dsId: import("@bpinternal/zui").ZodString;
    kbName: import("@bpinternal/zui").ZodString;
    kbId: import("@bpinternal/zui").ZodString;
    force: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodBoolean>>;
}, "strip", {
    kbId: string;
    kbName: string;
    dsId: string;
    force: boolean;
}, {
    kbId: string;
    kbName: string;
    dsId: string;
    force?: boolean | undefined;
}>, import("@bpinternal/zui").ZodObject<{
    processed: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
    added: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    updated: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    deleted: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
        file: import("@bpinternal/zui").ZodString;
        name: import("@bpinternal/zui").ZodString;
        hash: import("@bpinternal/zui").ZodString;
        size: import("@bpinternal/zui").ZodNumber;
    }, "strip", {
        name: string;
        size: number;
        hash: string;
        file: string;
    }, {
        name: string;
        size: number;
        hash: string;
        file: string;
    }>, "many">>;
    errors: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodString, "many">>;
}, "strip", {
    processed: number;
    added: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    updated: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    deleted: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[];
    errors: string[];
}, {
    processed?: number | undefined;
    added?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    updated?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    deleted?: {
        name: string;
        size: number;
        hash: string;
        file: string;
    }[] | undefined;
    errors?: string[] | undefined;
}>, TState, Record<string, import("../../types").ZuiType>>;
export declare abstract class DataSource {
    readonly id: string;
    readonly type: string;
    /**
     * The workflow that handles synchronization for this data source
     * Each data source type provides its own sync workflow implementation
     */
    abstract readonly syncWorkflow: BaseWorkflow<any>;
    /**
     * Get the serializable configuration for this data source.
     * Used for computing config hashes to detect changes.
     */
    abstract getConfig(): Record<string, unknown>;
    constructor(id: string, type: string);
}
export {};
//# sourceMappingURL=source-base.d.ts.map