import { Resource, ContextWrapped, CookieJar, AuthenticationError, AuthenticationService as AuthenticationServiceBase, AuthenticationMachineState, AuthenticationServiceOptions, AuthenticationMachineInput, User } from 'wirejs-resources'; export declare function hasNonEmptyString(o: any, k: string): boolean; export declare class AuthenticationService extends AuthenticationServiceBase { #private; constructor(scope: Resource | string, id: string, options?: AuthenticationServiceOptions); getMachineState(cookies: CookieJar): Promise; missingFieldErrors>(input: T, fields: (keyof T & string)[]): AuthenticationError[] | undefined; setMachineState(cookies: CookieJar, form: AuthenticationMachineInput): Promise; buildApi(): ContextWrapped<{ getState: () => Promise; setState: (options: AuthenticationMachineInput) => Promise; getCurrentUser: () => Promise; requireCurrentUser: () => Promise; }>; }