import * as React from 'react';
import * as GQL from '../../backend/graphqlschema';
import { FilteredConnection } from '../../components/FilteredConnection';
import { ErrorLike } from '../../util/errors';
export declare const accessTokenFragment: import("../../backend/graphql").GraphQLDocument;
export interface AccessTokenNodeProps {
    node: GQL.IAccessToken;
    /** Whether the token's subject user should be displayed. */
    showSubject?: boolean;
    /**
     * The newly created token, if any. This contains the secret for this node's token iff node.id
     * === newToken.id.
     */
    newToken?: GQL.ICreateAccessTokenResult;
    onDidUpdate: () => void;
}
interface AccessTokenNodeState {
    /** Undefined means in progress, null means done or not started. */
    deletionOrError?: null | ErrorLike;
}
export declare class AccessTokenNode extends React.PureComponent<AccessTokenNodeProps, AccessTokenNodeState> {
    state: AccessTokenNodeState;
    private deletes;
    private subscriptions;
    componentDidMount(): void;
    componentWillUnmount(): void;
    render(): JSX.Element | null;
    private deleteAccessToken;
}
export declare class FilteredAccessTokenConnection extends FilteredConnection<GQL.IAccessToken, Pick<AccessTokenNodeProps, 'onDidUpdate'>> {
}
export {};
//# sourceMappingURL=AccessTokenNode.d.ts.map