import { type Collection, type Request, type RequestPayload, type Tag } from '@scalar/oas-utils/entities/spec';
import type { extendedTagDataFactory } from '@/store/tags';
import type { StoreContext } from './store-context';
/** Create top level request handlers for a workspace */
export declare function createStoreRequests(useLocalStorage: boolean): {
    requests: Record<string, {
        type: "request";
        uid: string & import("zod").$brand<"operation">;
        path: string;
        method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
        servers: (string & import("zod").$brand<"server">)[];
        selectedServerUid: (string & import("zod").$brand<"server">) | null;
        examples: (string & import("zod").$brand<"example">)[];
        selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
        description?: string | undefined;
        summary?: string | undefined;
        externalDocs?: {
            url: string;
            description?: string | undefined;
        } | undefined;
        'x-internal'?: boolean | undefined;
        'x-scalar-ignore'?: boolean | undefined;
        security?: Record<string, string[]>[] | undefined;
        tags?: string[] | undefined;
        deprecated?: boolean | undefined;
        operationId?: string | undefined;
        requestBody?: any;
        parameters?: {
            in: "path" | "cookie" | "query" | "header";
            name: string;
            required: boolean;
            deprecated: boolean;
            description?: string | undefined;
            schema?: unknown;
            content?: unknown;
            style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
            explode?: boolean | undefined;
            example?: unknown;
            examples?: Record<string, {
                value?: unknown;
                summary?: string | undefined;
                externalValue?: string | undefined;
            }> | unknown[] | undefined;
        }[] | undefined;
        responses?: Record<string, any> | undefined;
        callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
        'x-codeSamples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-code-samples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-custom-examples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
        'x-post-response'?: string | undefined;
    }>;
    requestMutators: {
        add: (item: {
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }) => void;
        delete: (uid: (string & import("zod").$brand<"operation">) | null | undefined) => void;
        set: (item: {
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }) => void;
        edit: <P extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" | `servers.${number}` | "externalDocs.url" | "externalDocs.description" | `security.${number}` | `security.${number}.${string}` | `tags.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `requestBody.${string}` | `examples.${number}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.content` | `parameters.${number}.in` | `parameters.${number}.deprecated` | `parameters.${number}.examples` | `parameters.${number}.name` | `parameters.${number}.required` | `parameters.${number}.schema` | `parameters.${number}.style` | `parameters.${number}.explode` | `parameters.${number}.example` | `parameters.${number}.examples.${string}` | `parameters.${number}.examples.${number}` | `responses.${string}` | `callbacks.${string}` | `x-codeSamples.${number}` | `x-codeSamples.${number}.lang` | `x-codeSamples.${number}.source` | `x-codeSamples.${number}.label` | `x-code-samples.${number}` | `x-code-samples.${number}.lang` | `x-code-samples.${number}.source` | `x-code-samples.${number}.label` | `x-custom-examples.${number}` | `x-custom-examples.${number}.lang` | `x-custom-examples.${number}.source` | `x-custom-examples.${number}.label`>(uid: (string & import("zod").$brand<"operation">) | null | undefined, path: P, value: P extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? {
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? R extends import("@scalar/object-utils/nested").Path<{
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[K]> ? import("@scalar/object-utils/nested").PathValue<{
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
        untrackedEdit: <P extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" | `servers.${number}` | "externalDocs.url" | "externalDocs.description" | `security.${number}` | `security.${number}.${string}` | `tags.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `requestBody.${string}` | `examples.${number}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.content` | `parameters.${number}.in` | `parameters.${number}.deprecated` | `parameters.${number}.examples` | `parameters.${number}.name` | `parameters.${number}.required` | `parameters.${number}.schema` | `parameters.${number}.style` | `parameters.${number}.explode` | `parameters.${number}.example` | `parameters.${number}.examples.${string}` | `parameters.${number}.examples.${number}` | `responses.${string}` | `callbacks.${string}` | `x-codeSamples.${number}` | `x-codeSamples.${number}.lang` | `x-codeSamples.${number}.source` | `x-codeSamples.${number}.label` | `x-code-samples.${number}` | `x-code-samples.${number}.lang` | `x-code-samples.${number}.source` | `x-code-samples.${number}.label` | `x-custom-examples.${number}` | `x-custom-examples.${number}.lang` | `x-custom-examples.${number}.source` | `x-custom-examples.${number}.label`>(uid: string & import("zod").$brand<"operation">, path: P, value: P extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? {
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "summary" | "path" | "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "security" | "tags" | "deprecated" | "operationId" | "requestBody" | "parameters" | "responses" | "callbacks" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? R extends import("@scalar/object-utils/nested").Path<{
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[K]> ? import("@scalar/object-utils/nested").PathValue<{
            type: "request";
            uid: string & import("zod").$brand<"operation">;
            path: string;
            method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
            servers: (string & import("zod").$brand<"server">)[];
            selectedServerUid: (string & import("zod").$brand<"server">) | null;
            examples: (string & import("zod").$brand<"example">)[];
            selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
            description?: string | undefined;
            summary?: string | undefined;
            externalDocs?: {
                url: string;
                description?: string | undefined;
            } | undefined;
            'x-internal'?: boolean | undefined;
            'x-scalar-ignore'?: boolean | undefined;
            security?: Record<string, string[]>[] | undefined;
            tags?: string[] | undefined;
            deprecated?: boolean | undefined;
            operationId?: string | undefined;
            requestBody?: any;
            parameters?: {
                in: "path" | "cookie" | "query" | "header";
                name: string;
                required: boolean;
                deprecated: boolean;
                description?: string | undefined;
                schema?: unknown;
                content?: unknown;
                style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
                explode?: boolean | undefined;
                example?: unknown;
                examples?: Record<string, {
                    value?: unknown;
                    summary?: string | undefined;
                    externalValue?: string | undefined;
                }> | unknown[] | undefined;
            }[] | undefined;
            responses?: Record<string, any> | undefined;
            callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
            'x-codeSamples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-code-samples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-custom-examples'?: {
                source: string;
                lang?: string | undefined;
                label?: string | undefined;
            }[] | undefined;
            'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
            'x-post-response'?: string | undefined;
        }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
        undo: (uid: string & import("zod").$brand<"operation">) => void;
        redo: (uid: string & import("zod").$brand<"operation">) => void;
        reset: () => void;
    };
};
type AddTag = ReturnType<typeof extendedTagDataFactory>['addTag'];
/**
 * Create the extended mutators for request where access to the workspace is required
 */
export declare function extendedRequestDataFactory({ requestExamples, requestExampleMutators, requestMutators, collectionMutators, collections, tags, tagMutators, }: StoreContext, addTag: AddTag): {
    addRequest: (payload: RequestPayload, collectionUid: Collection["uid"]) => void | {
        type: "request";
        uid: string & import("zod").$brand<"operation">;
        path: string;
        method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
        servers: (string & import("zod").$brand<"server">)[];
        selectedServerUid: (string & import("zod").$brand<"server">) | null;
        examples: (string & import("zod").$brand<"example">)[];
        selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
        description?: string | undefined;
        summary?: string | undefined;
        externalDocs?: {
            url: string;
            description?: string | undefined;
        } | undefined;
        'x-internal'?: boolean | undefined;
        'x-scalar-ignore'?: boolean | undefined;
        security?: Record<string, string[]>[] | undefined;
        tags?: string[] | undefined;
        deprecated?: boolean | undefined;
        operationId?: string | undefined;
        requestBody?: any;
        parameters?: {
            in: "path" | "cookie" | "query" | "header";
            name: string;
            required: boolean;
            deprecated: boolean;
            description?: string | undefined;
            schema?: unknown;
            content?: unknown;
            style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
            explode?: boolean | undefined;
            example?: unknown;
            examples?: Record<string, {
                value?: unknown;
                summary?: string | undefined;
                externalValue?: string | undefined;
            }> | unknown[] | undefined;
        }[] | undefined;
        responses?: Record<string, any> | undefined;
        callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
        'x-codeSamples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-code-samples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-custom-examples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
        'x-post-response'?: string | undefined;
    };
    deleteRequest: (request: Request, collectionUid: Collection["uid"]) => void;
    findRequestParents: (r: Request) => string[];
};
/** Factory function to allow testing of the function */
export declare function findRequestParentsFactory({ collections, tags, }: {
    collections: Record<string, Collection>;
    tags: Record<string, Tag>;
}): (r: Request) => string[];
/** First draft request" */
export declare function createInitialRequest(): {
    request: {
        type: "request";
        uid: string & import("zod").$brand<"operation">;
        path: string;
        method: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
        servers: (string & import("zod").$brand<"server">)[];
        selectedServerUid: (string & import("zod").$brand<"server">) | null;
        examples: (string & import("zod").$brand<"example">)[];
        selectedSecuritySchemeUids: ((string & import("zod").$brand<"securityScheme">) | (string & import("zod").$brand<"securityScheme">)[])[];
        description?: string | undefined;
        summary?: string | undefined;
        externalDocs?: {
            url: string;
            description?: string | undefined;
        } | undefined;
        'x-internal'?: boolean | undefined;
        'x-scalar-ignore'?: boolean | undefined;
        security?: Record<string, string[]>[] | undefined;
        tags?: string[] | undefined;
        deprecated?: boolean | undefined;
        operationId?: string | undefined;
        requestBody?: any;
        parameters?: {
            in: "path" | "cookie" | "query" | "header";
            name: string;
            required: boolean;
            deprecated: boolean;
            description?: string | undefined;
            schema?: unknown;
            content?: unknown;
            style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
            explode?: boolean | undefined;
            example?: unknown;
            examples?: Record<string, {
                value?: unknown;
                summary?: string | undefined;
                externalValue?: string | undefined;
            }> | unknown[] | undefined;
        }[] | undefined;
        responses?: Record<string, any> | undefined;
        callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
        'x-codeSamples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-code-samples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-custom-examples'?: {
            source: string;
            lang?: string | undefined;
            label?: string | undefined;
        }[] | undefined;
        'x-scalar-stability'?: import("@scalar/types/legacy").XScalarStability | undefined;
        'x-post-response'?: string | undefined;
    };
};
export {};
//# sourceMappingURL=requests.d.ts.map