import { StatusCode, CspDirective } from '@shopify/network'; import { EffectKind } from '@shopify/react-effect'; import { ServerCookieManager, Cookie } from './ServerCookieManager'; export { NetworkContext } from './context'; export declare const EFFECT_ID: unique symbol; interface Options { headers?: Record; cookies?: Cookie | string; } export declare class NetworkManager { readonly effect: EffectKind; cookies: ServerCookieManager; private statusCodes; private redirectUrl?; private readonly csp; private readonly headers; private readonly requestHeaders; constructor({ headers, cookies }?: Options); reset(): void; getHeader(header: string): string; setHeader(header: string, value: string): void; redirectTo(url: string, status?: StatusCode): void; addStatusCode(statusCode: StatusCode): void; addCspDirective(directive: CspDirective, value: string | string[] | boolean): void; extract(): { status: number | undefined; headers: Map; cookies: { [x: string]: import("./ServerCookieManager").CookieValue; }; redirectUrl: string | undefined; }; } //# sourceMappingURL=manager.d.ts.map