import http from 'http'; export type HttpAdminContext = { actor: string; isAdmin: true; approveLevel3: true; }; export declare function isLoopbackAddress(remote: string | undefined): boolean; export declare function resolveHttpAdminContextFromInput(providedApiKey: string | null, isLoopback: boolean, configuredApiKeyOverride?: string): HttpAdminContext | null; export declare function resolveHttpAdminContext(req: http.IncomingMessage): HttpAdminContext | null; export declare function requireHttpAdminContext(req: http.IncomingMessage, res: http.ServerResponse): HttpAdminContext | null; export declare function isOriginAllowed(origin: string | undefined): boolean; export declare function setCorsHeaders(req: http.IncomingMessage, res: http.ServerResponse): void; export declare function deriveHttpSenderIdentity(context: HttpAdminContext): { sender: string; sender_name: string; }; export declare function requiresAdminApiAccess(pathname: string, method: string): boolean; //# sourceMappingURL=context.d.ts.map