import { StatusCode, CspDirective } from '@shopify/network'; import { EffectKind } from '@shopify/react-effect'; export { NetworkContext } from './context'; export declare const EFFECT_ID: unique symbol; interface Options { headers?: Record; } export declare class NetworkManager { readonly effect: EffectKind; private statusCodes; private redirectUrl?; private readonly csp; private readonly headers; private readonly requestHeaders; constructor({ headers }?: 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; redirectUrl: string | undefined; }; }