import { ServerInterceptor } from '@grpc/grpc-js'; /** * Creates a server interceptor that rejects any call which doesn't present * the expected token in its `authorization` metadata. * * The token is shared with the client that spawned this connector via the * `CASE_CONNECTOR_TOKEN` environment variable, so only that client (or * processes it chooses to share the token with) can invoke the connector. * * @param expectedToken - the token that callers must present * @returns a {@link ServerInterceptor} enforcing the token */ export declare const makeAuthTokenInterceptor: (expectedToken: string) => ServerInterceptor; //# sourceMappingURL=authTokenInterceptor.d.ts.map