export declare type Result = { status: number; headers?: Record; response?: any; }; export declare type DefaultScenario = Mock[] | { context?: Context; mocks: Mock[]; }; export declare type Scenario = Mock[] | { group?: string; context?: Context; mocks: Mock[]; }; export declare type ScenarioMap = { [scenario: string]: Scenario; }; declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; export declare type ResponseFunction = (input: TInput & { updateContext: UpdateContext; context: Context; }) => TResponse | Promise; export declare type MockResponse = TResponse | ResponseFunction; declare type HttpResponse = Record | string | null; export declare type ResponseProps = { response?: MockResponse; delay?: number; }>; }; export declare type HttpMock = { url: string | RegExp; method: HttpMethod; } & ResponseProps<{ query: Record>; body: Record; params: Record; }, HttpResponse>; declare type GraphQlResponse = { data?: null | Record; errors?: Array; }; export declare type Operation = { type: 'query' | 'mutation'; name: string; } & ResponseProps<{ variables: Record; }, GraphQlResponse>; export declare type GraphQlMock = { url: string; method: 'GRAPHQL'; operations: Array; }; export declare type Mock = HttpMock | GraphQlMock; export declare type Options = { port?: number; uiPath?: string; modifyScenariosPath?: string; resetScenariosPath?: string; scenariosPath?: string; cookieMode?: boolean; }; export declare type Context = Record; export declare type PartialContext = Context | ((context: Context) => Context); export declare type UpdateContext = (partialContext: PartialContext) => Context; export declare type GetContext = () => Context; export declare type Groups = Array<{ name: string; scenarios: Array<{ id: string; selected: boolean; }>; }>; export declare type CookieValue = { context: Context; scenarios: string[]; }; export declare type InternalRequest = { method: string; headers: Record; query: Record; path: string; body: any; }; export declare type GetCookie = (cookieName: string) => string | undefined; export declare type SetCookie = (cookieName: string, cookieValue: string) => void; export {};