import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type CreateChunkMetadata = string | number | boolean;
export type RequestBody = {
    /**
     * The text content of the chunk
     */
    text: string;
    /**
     * The embedding vector of the chunk. If not provided the chunk will be embedded with the knowledge base embeddings model.
     */
    embedding?: Array<number> | undefined;
    /**
     * Metadata of the chunk
     */
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
};
export type CreateChunkRequest = {
    /**
     * Unique identifier of the knowledge
     */
    knowledgeId: string;
    /**
     * Unique identifier of the datasource
     */
    datasourceId: string;
    requestBody?: Array<RequestBody> | undefined;
};
export type CreateChunkKnowledgeMetadata = string | number | boolean;
/**
 * The status of the chunk
 */
export declare const CreateChunkStatus: {
    readonly Pending: "pending";
    readonly Processing: "processing";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Queued: "queued";
};
/**
 * The status of the chunk
 */
export type CreateChunkStatus = ClosedEnum<typeof CreateChunkStatus>;
export type CreateChunkResponseBody = {
    /**
     * The unique identifier of the chunk
     */
    id: string;
    /**
     * The text content of the chunk
     */
    text: string;
    /**
     * Metadata of the chunk. Can include `page_number` or any other key-value pairs
     */
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
    /**
     * Whether the chunk is enabled
     */
    enabled: boolean;
    /**
     * The status of the chunk
     */
    status: CreateChunkStatus;
    /**
     * The date and time the chunk was created
     */
    created: string;
    /**
     * The date and time the chunk was updated
     */
    updated: string;
    /**
     * The unique identifier of the user who created the chunk
     */
    createdById?: string | null | undefined;
    /**
     * The unique identifier of the user who updated the chunk
     */
    updateById?: string | null | undefined;
};
/** @internal */
export type CreateChunkMetadata$Outbound = string | number | boolean;
/** @internal */
export declare const CreateChunkMetadata$outboundSchema: z.ZodType<CreateChunkMetadata$Outbound, z.ZodTypeDef, CreateChunkMetadata>;
export declare function createChunkMetadataToJSON(createChunkMetadata: CreateChunkMetadata): string;
/** @internal */
export type RequestBody$Outbound = {
    text: string;
    embedding?: Array<number> | undefined;
    metadata?: {
        [k: string]: string | number | boolean;
    } | undefined;
};
/** @internal */
export declare const RequestBody$outboundSchema: z.ZodType<RequestBody$Outbound, z.ZodTypeDef, RequestBody>;
export declare function requestBodyToJSON(requestBody: RequestBody): string;
/** @internal */
export type CreateChunkRequest$Outbound = {
    knowledge_id: string;
    datasource_id: string;
    RequestBody?: Array<RequestBody$Outbound> | undefined;
};
/** @internal */
export declare const CreateChunkRequest$outboundSchema: z.ZodType<CreateChunkRequest$Outbound, z.ZodTypeDef, CreateChunkRequest>;
export declare function createChunkRequestToJSON(createChunkRequest: CreateChunkRequest): string;
/** @internal */
export declare const CreateChunkKnowledgeMetadata$inboundSchema: z.ZodType<CreateChunkKnowledgeMetadata, z.ZodTypeDef, unknown>;
export declare function createChunkKnowledgeMetadataFromJSON(jsonString: string): SafeParseResult<CreateChunkKnowledgeMetadata, SDKValidationError>;
/** @internal */
export declare const CreateChunkStatus$inboundSchema: z.ZodNativeEnum<typeof CreateChunkStatus>;
/** @internal */
export declare const CreateChunkResponseBody$inboundSchema: z.ZodType<CreateChunkResponseBody, z.ZodTypeDef, unknown>;
export declare function createChunkResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateChunkResponseBody, SDKValidationError>;
//# sourceMappingURL=createchunk.d.ts.map